
    <div class="sidebar">
        <ul>
            <li><a class="menu {$c == 'main' ? ' current' : ''}" href="{$this->url('main')}">管理首页</a></li>
            <!--{loop $this->menu $v}-->
            <li>
                <a class="menu{$c === $v['url'] || in_array($c, $this->getchild($v['child'])) ? ' current' : ''}" href="{echo !$v['url'] ? '' : $this->url($v['url'])}">{$v['title']}</a>
                <!--{if $v['child']}-->
                <ul>
                    <!--{loop $v['child'] $child}-->
                    <li><a href="{$this->url($child['url'])}"{$c === $child['url'] ? ' class="current"' : ""}>{$child['title']}</a></li>
                    <!--{/loop}-->
                </ul>
                <!--{/if}-->
            </li>
            <!--{/loop}-->
        </ul>
    </div>
